﻿using vm.Aspects.Diagnostics;
using vm.Aspects.Validation;

namespace vm.Aspects.Repository.Metadata
{
    /// <summary>
    /// Class DomainEntityMetadata.
    /// </summary>
    public abstract class DomainEntityMetadata
    {
        /// <summary>
        /// The has identity flag
        /// </summary>
        [Dump(0)]
        public object HasIdentity;

        /// <summary>
        /// Gets or sets the key.
        /// </summary>
        [Dump(1)]
        public object Key;

        /// <summary>
        /// Gets or sets the identifier.
        /// </summary>
        [NonnegativeValidator]
        [Dump(2)]
        public object Id;
    }
}
